home *** CD-ROM | disk | FTP | other *** search
/ El Mac 8 / El Mac 8.iso / Shareware / Utilities / PowerReplace 4.5.5 / Documentation / 6. FAQ < prev    next >
Encoding:
Text File  |  1996-03-03  |  2.0 KB  |  75 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.                           PowerReplace F.A.Q. 
  6.                                       Novembre 21, 1995
  7. _________________________________________________________________
  8. [Q1] I would like to replace é by é for converting my text into HTML format. How to do it?
  9. [R] It's enough to add the following line in your filter-file:
  10. "é"   "é"
  11.  
  12. [Q2] Now I would like to do exactly the opposite, it means replace é by é
  13. how about it ?
  14. [R] This time the following line:
  15. "é" "é" 
  16.  
  17. [Q3] OK. But sometimes my text editor cut a word into two for separating two lines as  &ea-cute; how to correct it?
  18. [R] Add the two following lines :
  19. "&ea\ncute;" "é\n" 
  20. "&ea\rcute;" "é\r" 
  21.  
  22. [Q4] How to replace %22 by " (quotation marks)?
  23. [R] You must use the  special character \" adding the following line:
  24. "%22"   "\""
  25.  
  26. [Q5] How to remove all words beginning with def?
  27. [R] Here some examples:
  28. "def* " " "
  29. "def*\r" "\r"
  30. "def*\n" "\n"
  31. "def*\t" "\t"
  32.  
  33. [Q6] How to remove a line beginning with % (TeX comment)?
  34. [R] 
  35. "%*\r" "\r"
  36. "%*\n" "\n"
  37.  
  38. [Q7] How to remove all mathmatical formulas in a TeX file?
  39. [R]
  40. "$$*$$" ""
  41. "$*$" ""
  42.  
  43. [Q8] I would like to replace ef by EF, except ef in def?
  44. [R] There is an astute method:
  45. "def" "a random word"
  46. "ef" "EF"
  47. "a random word" "def" 
  48.  
  49. [Q9] How to replace \alpha by æ (in a TeX file for example)?
  50. [R] (Don’t forget that there is perhaps \alphabet in the text file)
  51. "\\alpha " "æ "
  52. "\\alpha\\" "æ\\"
  53. "\\alpha;" "æ;"
  54. "\\alpha)" "æ)"
  55. "\\alpha," "æ,"
  56. "\\alpha=" "æ="
  57. "\\alpha\r" "æ\r"
  58. "\\alpha\n" "æ\n"
  59. "\\alpha\t" "æ\t"
  60.  
  61. [Q10] What is “Char Convert Only” option in the MakeFilterFile window ?
  62. [R] Every PowerReplace Expression contains two strings separated by espace or by tabulation. If the first-string of each  PRExpression is only one character as :
  63.  
  64. "d" "\alpha"
  65. "e" "EF"
  66. "a" "$$" 
  67.  
  68. you can set “Char Convert Only” option on in the MakeFilterFile window. It lets  PowerReplace convert much more rapidly.
  69.  
  70. _________________________
  71. Guoniu Han
  72. email: guoniu@math.u-strasbg.fr
  73. http://130.79.4.26/~guoniu/mac/
  74. _________________________
  75.